package com.bw.module_cinema.model.api

import com.bw.lib_net.BaseResponse
import com.bw.module_cinema.model.entity.VideoByTypeIdEntity
import com.bw.module_cinema.search.entity.SearchVideoEntity
import com.bw.module_cinema.model.entity.VideoTypeEntity
import retrofit2.http.GET
import retrofit2.http.Query

interface CinemaApi {
    @GET("/videotype/getMutilType")
    suspend fun getCinemaType(): BaseResponse<List<VideoTypeEntity>>

    @GET("/videotype/getMutilTypeByPid")
    suspend fun getCinemaTypeByPid( @Query("pid") pid: Int): BaseResponse<List<VideoTypeEntity>>

    @GET("/videomulti/getMutilVideoByTypeId")
    suspend fun getVideoByTypeId(
        @Query("page") page: Int,
        @Query("pagesize") pagesize: Int,
        @Query("typeid") typeid: Int
    ): BaseResponse<List<VideoByTypeIdEntity>>

    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(
        @Query("page") page: Int,
        @Query("pagesize") pagesize: Int
    ): BaseResponse<List<SearchVideoEntity>>
}